{template header}

<style>
    .hp-visited a:visited{color: #444;}
    .input-append button, textarea, input, select{font-size:12px;}
</style>
<div style="clear:both">
    <h5>
        <span class="add-on"><i class="icon-calendar"></i> 添加合辑 </span>
        <span class="add-on">
            <code><a href="./?c=admin&a=gearSets">装备合辑管理</a></code>
        </span>
    </h5>
</div>

<table class="table table-striped table-bordered table-hover"><tr><td>
<div style="clear:both;margin: 50px;">
    {if !empty($msg)}
    <div class="alert alert-warn">
        {$msg}
    </div>
    {/if}
    <form class="form-horizontal" method="post" enctype="multipart/form-data">
        <div class="control-group">
            <label class="control-label" for="name">标题<span style="color: red;">*</span></label>
            <div class="controls">
                <input name="name" type="text" id="name" class="input-xxlarge" placeholder="合辑标题" value="{$gearSetInfo['name']}">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="shortDesc">简介</label>
            <div class="controls">
                <textarea name="shortDesc" id="shortDesc" class="input-xxlarge" rows="3" placeholder="合辑简介">{$gearSetInfo['shortDesc']}</textarea>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="images">配图</label>
            <div class="controls">
                <div><input name="images" type="file" id="images" placeholder="合辑配图" value="{$gearSetInfo['images']}"></div>
                {if !empty($gearSetInfo['img'])}<div><img width="140" src="{$gearSetInfo['img']}" /></div>{/if}
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="relate_content">装备IDs<span style="color: red;">*</span></label>
            <div class="controls">
                <textarea name="relate_content" id="relate_content" class="input-xxlarge" rows="3" placeholder="装备IDs">{$gearSetInfo['relate_content']}</textarea>
                <div style="margin-top:5px;"><code>以逗号分隔</code></div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="possess">是否置顶</label>
            <div class="controls">
                <select name="possess" id="possess" class="input-small">
                    <option value="1" {if $gearSetInfo['possess']}selected="selected"{/if}>是</option>
                    <option value="0" {if !$gearSetInfo['possess']}selected="selected"{/if}>否</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputStatus"></label>
            <div class="controls">
                <input name="submit" type="submit" id="inputSubmit" class="btn btn-primary" value="提交">&nbsp;&nbsp;
                <input name="reset" type="reset" id="inputreset" class="btn btn-inverse" value="重置">
            </div>
        </div>
    </form>
</div>
</td></tr></table>

{template footer}